<?php
/*$url = 'http://funimation.tv/oldschool.html';
$dom = new DOMDocument();
$dom->loadHTMLFile($url);
var_dump($dom);die;*/
$uri = 'http://localhost/mvc/Examples/XmlAndWebService/WebService/Soap/';
$options = array(
	'location' => 'http://10.0.0.39/mvc/api.php',
	'uri' => $uri,
	'trace' => 1,
	'exceptions' => true
);
try{
	$client = new SoapClient(NULL, $options);
	//var_dump(date('H:i:s'));
	//echo $client->getMessage() ;
	echo $client->getUserByEmail('shlomiphp@gmail.com');
	//var_dump(date('H:i:s'));
	//$client->addNumbers(3, 5);
//	header("Content-type: text/xml");
	//echo $client->__getLastRequest();
	//echo $client->__getLastResponse();
}catch(SoapFault $e){
	var_dump($e->getMessage());
}